import request from '@/utils/request'

// 查询订单物流信息列表
export function listExpressInfo(query) {
  return request({
    url: '/biz/expressInfo/list',
    method: 'get',
    params: query
  })
}

// 查询订单物流信息详细
export function getExpressInfo(id) {
  return request({
    url: '/biz/expressInfo/' + id,
    method: 'get'
  })
}

// 新增订单物流信息
export function addExpressInfo(data) {
  return request({
    url: '/biz/expressInfo',
    method: 'post',
    data: data
  })
}

// 修改订单物流信息
export function updateExpressInfo(data) {
  return request({
    url: '/biz/expressInfo',
    method: 'put',
    data: data
  })
}

// 删除订单物流信息
export function delExpressInfo(id) {
  return request({
    url: '/biz/expressInfo/' + id,
    method: 'delete'
  })
}

// 导出订单物流信息
export function exportExpressInfo(query) {
  return request({
    url: '/biz/expressInfo/export',
    method: 'get',
    params: query
  })
}